home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 29
/
Volume 29 - JOGO DISK .iso
/
Games
/
jungle_adventure.swf
/
scripts
/
__Packages
/
GameHealth.as
< prev
next >
Wrap
Text File
|
2006-11-29
|
893b
|
32 lines
class GameHealth extends GameCollectable
{
var assetID = "health";
var soundID = "health";
var value = 0.5;
var classID = SSGlobal.CLSID_HEALTH;
var editor_isItem = true;
var editor_name = "GameHealth";
var editor_args_names = ["value"];
var editor_args_values = [GameHealth.prototype.value];
var editor_args_types = ["number"];
var editor_args_options = [[0,1,0.01]];
var editor_args_descriptions = [""];
var editor_args_mode = [0];
var editor_args_component = ["NumericStepper"];
function GameHealth(value)
{
super();
if(typeof value != "string" && value != null)
{
this.value = value;
}
}
function setCollected(obj)
{
this.collected = true;
obj.shiftHealth(this.value,this);
GameSound.playSound(this.soundID);
this.world.removeObject(this);
}
}